package com.zb.mapper;

import com.zb.pojo.Account;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;

import java.util.List;

/**
 * @Author: 张波
 * @Time: 2025/8/21 18:43
 */
public interface AccountMapper {
	@Select("select * from test.account;")
	List<Account> selectAll();
	@Update("update account set money = money+#{arg1} where id=#{arg0};")
	int updateAddMoney(int id,double money);
	@Update("update account set money = money-#{arg1} where id=#{arg0};")
	int updateSubMoney(int id,double money);
}
